package com.gonsin.gview.model;

import com.gonsin.gview.annotations.model.ViewRequest;

import java.util.List;

public interface IViewModelHolder {

    /**
     * 动态加载view
     */
    GViewModel getViewModel(ViewRequest request, IViewPermissionHandler permissionHandler);


    /**
     * 返回该模板的viewName
     */
    String getViewName();


    /**
     * 进入该页面需要传入的参数
     */
    List<String> getProps();

}
